﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
 
namespace WisDom.Models
{ 
    /// <summary>
    /// 包建立信息
    /// </summary>
    public class PackageSetupInfoEntity:BaseEntity
    {
        /// <summary>
        /// 包建立编号
        /// </summary>
        public int SetupId { get; set; }

        /// <summary>
        ///  包编号
        /// </summary>
        public int PackageId { get; set; }
        /// <summary>
        ///  版本号
        /// </summary>
        public string Version { get; set; }
        /// <summary>
        /// 保存路径
        /// </summary>
        public string SavePath { get; set; }
        /// <summary>
        /// 是否能获取最新的；
        /// 应用程序：可以获取最新的
        /// 数据库脚本：不能获取最新
        /// </summary>
        public bool IsGetLast { get; set; }
        /// <summary>
        /// 是否是zip压缩文件
        /// </summary>
        public bool IsZip { get; set; }

        [NotMapped]
        public virtual PackageInfoEntity PackageInfoEntity { get; set; }

        public override void CalcPrimaryKey()
        {
            //throw new NotImplementedException();
        }
    } 
}
